Optimal. Leaf size=28 \[ -\frac {4 \cos ^6(a+b x)}{3 b}+\frac {\cos ^8(a+b x)}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {4372, 2645, 14}
\begin {gather*} \frac {\cos ^8(a+b x)}{b}-\frac {4 \cos ^6(a+b x)}{3 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2645
Rule 4372
Rubi steps
\begin {align*} \int \cos ^2(a+b x) \sin ^3(2 a+2 b x) \, dx &=8 \int \cos ^5(a+b x) \sin ^3(a+b x) \, dx\\ &=-\frac {8 \text {Subst}\left (\int x^5 \left (1-x^2\right ) \, dx,x,\cos (a+b x)\right )}{b}\\ &=-\frac {8 \text {Subst}\left (\int \left (x^5-x^7\right ) \, dx,x,\cos (a+b x)\right )}{b}\\ &=-\frac {4 \cos ^6(a+b x)}{3 b}+\frac {\cos ^8(a+b x)}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.14, size = 48, normalized size = 1.71 \begin {gather*} \frac {-72 \cos (2 (a+b x))-12 \cos (4 (a+b x))+8 \cos (6 (a+b x))+3 \cos (8 (a+b x))}{384 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(57\) vs.
\(2(26)=52\).
time = 0.14, size = 58, normalized size = 2.07
method | result | size |
default | \(-\frac {3 \cos \left (2 x b +2 a \right )}{16 b}-\frac {\cos \left (4 x b +4 a \right )}{32 b}+\frac {\cos \left (6 x b +6 a \right )}{48 b}+\frac {\cos \left (8 x b +8 a \right )}{128 b}\) | \(58\) |
risch | \(-\frac {3 \cos \left (2 x b +2 a \right )}{16 b}-\frac {\cos \left (4 x b +4 a \right )}{32 b}+\frac {\cos \left (6 x b +6 a \right )}{48 b}+\frac {\cos \left (8 x b +8 a \right )}{128 b}\) | \(58\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 50, normalized size = 1.79 \begin {gather*} \frac {3 \, \cos \left (8 \, b x + 8 \, a\right ) + 8 \, \cos \left (6 \, b x + 6 \, a\right ) - 12 \, \cos \left (4 \, b x + 4 \, a\right ) - 72 \, \cos \left (2 \, b x + 2 \, a\right )}{384 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.65, size = 26, normalized size = 0.93 \begin {gather*} \frac {3 \, \cos \left (b x + a\right )^{8} - 4 \, \cos \left (b x + a\right )^{6}}{3 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 362 vs.
\(2 (22) = 44\).
time = 2.72, size = 362, normalized size = 12.93 \begin {gather*} \begin {cases} - \frac {3 x \sin ^{2}{\left (a + b x \right )} \sin ^{3}{\left (2 a + 2 b x \right )}}{16} - \frac {3 x \sin ^{2}{\left (a + b x \right )} \sin {\left (2 a + 2 b x \right )} \cos ^{2}{\left (2 a + 2 b x \right )}}{16} - \frac {3 x \sin {\left (a + b x \right )} \sin ^{2}{\left (2 a + 2 b x \right )} \cos {\left (a + b x \right )} \cos {\left (2 a + 2 b x \right )}}{8} - \frac {3 x \sin {\left (a + b x \right )} \cos {\left (a + b x \right )} \cos ^{3}{\left (2 a + 2 b x \right )}}{8} + \frac {3 x \sin ^{3}{\left (2 a + 2 b x \right )} \cos ^{2}{\left (a + b x \right )}}{16} + \frac {3 x \sin {\left (2 a + 2 b x \right )} \cos ^{2}{\left (a + b x \right )} \cos ^{2}{\left (2 a + 2 b x \right )}}{16} - \frac {\sin ^{2}{\left (a + b x \right )} \sin ^{2}{\left (2 a + 2 b x \right )} \cos {\left (2 a + 2 b x \right )}}{2 b} - \frac {49 \sin ^{2}{\left (a + b x \right )} \cos ^{3}{\left (2 a + 2 b x \right )}}{96 b} + \frac {13 \sin {\left (a + b x \right )} \sin ^{3}{\left (2 a + 2 b x \right )} \cos {\left (a + b x \right )}}{16 b} + \frac {7 \sin {\left (a + b x \right )} \sin {\left (2 a + 2 b x \right )} \cos {\left (a + b x \right )} \cos ^{2}{\left (2 a + 2 b x \right )}}{8 b} + \frac {17 \cos ^{2}{\left (a + b x \right )} \cos ^{3}{\left (2 a + 2 b x \right )}}{96 b} & \text {for}\: b \neq 0 \\x \sin ^{3}{\left (2 a \right )} \cos ^{2}{\left (a \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.53, size = 26, normalized size = 0.93 \begin {gather*} \frac {3 \, \cos \left (b x + a\right )^{8} - 4 \, \cos \left (b x + a\right )^{6}}{3 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.14, size = 26, normalized size = 0.93 \begin {gather*} -\frac {\frac {4\,{\cos \left (a+b\,x\right )}^6}{3}-{\cos \left (a+b\,x\right )}^8}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________